package com.schtkc.fishingmaster.entity.m;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@ToString
public class R implements Serializable {
    private int code;
    private String message;
    private Object data;

    public R(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public R(int code, String message, Object obj) {
        this.code = code;
        this.message = message;
        this.data = obj;
        System.out.println(this.toString());
    }
}
